import query from '@dfeidao/atom-nodejs/db/query';


interface Message {
	productid: string;
	client_style: string;
}


export default async function atom(msg: Message, action_id: string, session_id: string, spaceid: string) {
	const systemid = '11';
	const { prepare, exec } = query(action_id, session_id, systemid);
	prepare('product_clent_type', [
		'_id', 'flag',
		'productid', 'client_style', 'client_point_id', 'field_name'], { productid: msg.productid, client_style: { $ne: 'desk' } }, 199, 1, [], []);
	const ret = await exec();
	return ret;
}
